projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7b3909
)
applicationwindow: Fix measure implementation
author
Timm Bäder
<mail@baedert.org>
Wed, 17 Jan 2018 15:02:28 +0000
(16:02 +0100)
committer
Timm Bäder
<mail@baedert.org>
Wed, 17 Jan 2018 20:57:20 +0000
(21:57 +0100)
Really calculate the menubar height, not the width.
gtk/gtkapplicationwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkapplicationwindow.c
b/gtk/gtkapplicationwindow.c
index 6ac97521bbc7e0c80a09a37a279d30ad2a0b9b2e..0d2304a4d67770a3c2d20baaba8f5b0045784476 100644
(file)
--- a/
gtk/gtkapplicationwindow.c
+++ b/
gtk/gtkapplicationwindow.c
@@
-547,7
+547,8
@@
gtk_application_window_measure (GtkWidget *widget,
GtkBorder border = {0};
int menubar_height = 0;
- gtk_widget_measure (priv->menubar, orientation, for_size, &menubar_height, NULL, NULL, NULL);
+ gtk_widget_measure (priv->menubar, GTK_ORIENTATION_VERTICAL,
+ for_size, &menubar_height, NULL, NULL, NULL);
GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
orientation,